package foundation.filter;


import javax.ws.rs.container.DynamicFeature;
import javax.ws.rs.container.ResourceInfo;
import javax.ws.rs.core.FeatureContext;

/**
 * @author futao
 * Created on 18-7-23-下午2:43.
 */
public class MethodDynamicFeature implements DynamicFeature {
    @Override
    public void configure(ResourceInfo resourceInfo, FeatureContext featureContext) {
        if ("say".equals(resourceInfo.getResourceMethod().getName())) {
            featureContext.register(AnnotationFilter.class);
        }
    }
}
